package e

var MsgFlags = map[int]string{
	SUCCESS:       "ok",
	ERROR:         "fail",
	InvalidParams: "Invalid Parameters",

	ErrorAuthCheckTokenFail:    "Failing to check Token",
	ErrorAuthCheckTokenTimeout: "Token has been timeout",
	ErrorAuthToken:             "Failing to generate Token",
	ErrorAuth:                  "Error with Token",
	ErrorNotCompare:            "Failing to match Token",
	ErrorDatabase:              "Error with database",
	ErrorPriority:              "Error with Priority",
}

func GetMsg(code int) string {
	msg, ok := MsgFlags[code]
	if ok {
		return msg
	}
	return MsgFlags[ERROR]
}
